
package org.springxrsk.modules.students.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.students.pojo.entity.QyStudentsEntity;
import org.springxrsk.modules.students.pojo.vo.QyStudentsVO;
import java.util.Objects;

/**
 * 学员管理 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-15
 */
public class QyStudentsWrapper extends BaseEntityWrapper<QyStudentsEntity, QyStudentsVO>  {

	public static QyStudentsWrapper build() {
		return new QyStudentsWrapper();
 	}

	@Override
	public QyStudentsVO entityVO(QyStudentsEntity qyStudents) {
		QyStudentsVO qyStudentsVO = Objects.requireNonNull(BeanUtil.copyProperties(qyStudents, QyStudentsVO.class));

		//User createUser = UserCache.getUser(qyStudents.getCreateUser());
		//User updateUser = UserCache.getUser(qyStudents.getUpdateUser());
		//qyStudentsVO.setCreateUserName(createUser.getName());
		//qyStudentsVO.setUpdateUserName(updateUser.getName());

		return qyStudentsVO;
	}


}
